<?php
class ReservasLoginForm extends BaseForm
{
  public function configure()
  {
    parent::configure();
    $this->disableLocalCSRFProtection();
    $this->setWidgets(array(
      'order'        => new sfWidgetFormInput(),
      'id'  => new sfWidgetFormInput(),
    ));    
 
    $this->setValidators(array(
      'order'        => new sfValidatorString(array('required'=>true), array('required'=>sfContext::getInstance()->getI18N()->__('loginErrorNumReserva', null, 'messages'))),
      'id'  => new sfValidatorString(array('required'=>true), array('required'=>sfContext::getInstance()->getI18N()->__('loginErrorNumReserva', null, 'messages'))),
    ));
 
    $this->widgetSchema->setNameFormat('login[%s]');
    $this->widgetSchema->setFormFormatterName('list');
 
  }
 
}